<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:outputStylesheet library="css" name="style.css" />

<f:view>
	<h:head>
		<title>CatLib - Student anlegen</title>
	</h:head>
	<h:body>
		<h:graphicImage library="img" value="/img/catlib.png"></h:graphicImage>
		<br></br>
		<br></br>
		<h:form>
			<p:messages id="messages" showDetail="false" autoUpdate="true"
				closable="true" />
		</h:form>

		<h:form>
			<h:panelGrid columns="2" cellpadding="4">

				<p:outputLabel for="input-vorname" value="Vorname"></p:outputLabel>
				<p:inputText id="input-vorname" value="#{student.vorname}"
					required="true"
					requiredMessage="Bitte geben Sie einen Vornamen ein."></p:inputText>



				<p:outputLabel for="input-nachname" value="Nachname"></p:outputLabel>
				<p:inputText id="input-nachname" value="#{student.nachname}"
					required="true"
					requiredMessage="Bitte geben Sie einen Nachnamen ein."></p:inputText>


				<p:commandButton value="Student anlegen" action="#{student.create}"></p:commandButton>
				<br></br>
				<p:button value="Zurück" outcome="createStudentBack"></p:button>
			</h:panelGrid>
		</h:form>

	</h:body>
</f:view>




</html>